<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href='<%=basePath%>'>
<script src="res/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
body{
	background-color: #EEEEEE;
	text-align: center;
}
#money{
	color: #3399ff;
	font-size: 17px;
}
#text{
	margin-top:-30px;
}

</style>
</head>
<body>
<div style="width: 410px;">
<div style="width: 200px;height:100px; background-color: white; float:right; border-radius:10px;"><p id="money"></p><br/><p style="color: #DDDDDD;" id="text">会员充值总金额</p></div>
<div style="width: 200px;height:100px; background-color: #00ccff; border-radius:10px;"><p id="count" style="color: white;"></p><br/><p style="color: #DDDDDD;" id="text">会员数量</p></div>

<div style="width: 200px;height:100px; margin-top:19px; background-color: #6633cc;float:right;  border-radius:10px;"><p id="sctockmpNum" style="color: white;"></p><br/><p style="color: #DDDDDD;" id="text">销售总量</p></div>
<div style="width: 200px;height:100px; background-color: white; border-radius:10px;"><p id="row" style="color: #000000;"></p><br/><p style="color: #DDDDDD;" id="text">今日销售量</p></div>
<div style="width: 200px;height:100px; background-color: white; border-radius:10px;"><p id="sum" style="color: #000000;"></p><br/><p style="color: #DDDDDD;" id="text">财务总额</p></div>
</div>
</body>

<script type="text/javascript">
	$(function(){
		var url="money/selectMoneyBystaffId.action";
		$.post(url,null,function(num){
			$("#money").html(num);
		})
		
		var url ="money/selectStaffNum.action";
		$.post(url,null,function(count){
			$("#count").html(count);
		})
		
		var url ="money/selectSctockmpNum.action";
		$.post(url,null,function(sctockmpNum){    
			$("#sctockmpNum").html(sctockmpNum);
		})
		
		var url ="money/selectDate.action";
		$.post(url,null,function(row){
			$("#row").html(row);
		})
		
		var url ="money/selectMoneySum.action";
		$.post(url,null,function(sum){
			$("#sum").html(sum);
		})
	})

</script>
</html>